﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Product
{
    /// <summary>
    /// 类型管理
    /// </summary>
    [Table("ProductType")]
    public class ProductType: FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        /// <summary>
        /// 类型名称
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string TypeName { get; set; }
        /// <summary>
        /// 是否存在属性
        /// </summary>
        public bool Isflagattr { get; set; } = true;
        /// <summary>
        /// 是否存在参数
        /// </summary>
        public bool Ispro { get; set; } = true;
        /// <summary>
        /// 是否和品牌关联
        /// </summary>
        public bool Isbrand { get; set; } = true;
        /// <summary>
        /// 是否存在规格选项
        /// </summary>
        public bool IsSpec { get; set; } = false;
        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public int Orders { get; set; }
    }
}
